<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      >
    <h:head>
        <title>Principal</title>
  <link type="text/css" rel="stylesheet" href="jquery-ui-1.9.2.custom.css" />
        <style type="text/css">
            
            
        </style>


    </h:head>
    <h:body id="inicial_body">

        <p:layout fullPage="true">

            <ui:insert name="center">
                <p:layoutUnit position="center" >
                     <h:form id="formulario_login">
                         
                         <p:messages id="mensagem" showSummary="true"/>
                    <h:panelGrid columns="2" cellpadding="5" width="200" style="margin: auto; height: 100px; padding-top: 20%">
                        <h:outputText for="login" value="Login:" style="font-weight:bold"/>
                        <p:focus>
                        <p:inputText id="login" value="#{usuC.usu.login}" required="true" requiredMessage="Campo login é obrigatorio! " />
                        </p:focus>
                        <h:outputText for="senha" value="Senha:" style="font-weight:bold"/>
                        <p:password id="senha" value="#{usuC.usu.senha}" required="true" requiredMessage="Campo senha é obrigatorio! " />
                        <p:commandButton value="Entrar" action="#{usuC.entrar}" ajax="false"/>
                    </h:panelGrid>

                </h:form>
                </p:layoutUnit>
            </ui:insert>

        </p:layout>
    </h:body>
</html>

